#!/bin/bash

if [ $# -ne 2 ]
then
	echo "Usage: $0 <input_folder> <output_folder>"
	exit 0
fi

INPUT_FOLDER=$1
OUTPUT_FOLDER=$2

BASE_DIR="/Users/sebastien/Java/Projects/IrcBotDownloader"

echo "Lancement de IrcBotDownloader"

JAVA_EX=/usr/bin/java

JAVA_CLASSPATH="$BASE_DIR/lib/pircbot.jar:$BASE_DIR/lib/log4j-1.2.16.jar:$BASE_DIR/lib/IrcBotDownloader.jar" 

$JAVA_EX -cp $JAVA_CLASSPATH \
	-Dlog4j.configuration="file:$BASE_DIR/config/log4j.xml" \
	-DPROPERTY_FILE="$BASE_DIR/config/IrcBotDownloader.properties" \
	info.angelloznicoud.ircdl.IrcBotDownloader $1 $2
